package cj.web.vote.domain;
/*
 *  
 *  
*/
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import java.io.Serializable;

/**
 * TODO: add class/table comments
 */
public class Song implements Serializable {

    protected Integer id;
	protected String name;
	protected String description;
	protected String imgURL;
	protected String songURL;
	protected String singer;
	protected String university;
	protected String colleage;
	protected String deleteFlag;
	protected String votePlus;
	protected java.util.Date createAT;
	protected java.util.Date updateAT;


	/**
	 * Default Empty Constructor for class Song
	 */
	public Song () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class Song
	 */
	public Song (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
     * 
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getName() {
		return this.name;
	}
	
	/**
	 * Set the name
	 */	
	public void setName(String aValue) {
		this.name = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getDescription() {
		return this.description;
	}
	
	/**
	 * Set the description
	 */	
	public void setDescription(String aValue) {
		this.description = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getImgURL() {
		return this.imgURL;
	}
	
	/**
	 * Set the imgURL
	 */	
	public void setImgURL(String aValue) {
		this.imgURL = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getSongURL() {
		return this.songURL;
	}
	
	/**
	 * Set the songURL
	 */	
	public void setSongURL(String aValue) {
		this.songURL = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getSinger() {
		return this.singer;
	}
	
	/**
	 * Set the singer
	 */	
	public void setSinger(String aValue) {
		this.singer = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getUniversity() {
		return this.university;
	}
	
	/**
	 * Set the university
	 */	
	public void setUniversity(String aValue) {
		this.university = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getColleage() {
		return this.colleage;
	}
	
	/**
	 * Set the colleage
	 */	
	public void setColleage(String aValue) {
		this.colleage = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getDeleteFlag() {
		return this.deleteFlag;
	}
	
	/**
	 * Set the deleteFlag
	 */	
	public void setDeleteFlag(String aValue) {
		this.deleteFlag = aValue;
	}	

	/**
	 * 	 * @return String
	 * 
	 */
	public String getVotePlus() {
		return this.votePlus;
	}
	
	/**
	 * Set the votePlus
	 */	
	public void setVotePlus(String aValue) {
		this.votePlus = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getCreateAT() {
		return this.createAT;
	}
	
	/**
	 * Set the createAT
	 * @spring.validator type="required"
	 */	
	public void setCreateAT(java.util.Date aValue) {
		this.createAT = aValue;
	}	

	/**
	 * 	 * @return java.util.Date
	 * 
	 */
	public java.util.Date getUpdateAT() {
		return this.updateAT;
	}
	
	/**
	 * Set the updateAT
	 * @spring.validator type="required"
	 */	
	public void setUpdateAT(java.util.Date aValue) {
		this.updateAT = aValue;
	}	

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof Song)) {
			return false;
		}
		Song rhs = (Song) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.name, rhs.name)
				.append(this.description, rhs.description)
				.append(this.imgURL, rhs.imgURL)
				.append(this.songURL, rhs.songURL)
				.append(this.singer, rhs.singer)
				.append(this.university, rhs.university)
				.append(this.colleage, rhs.colleage)
				.append(this.deleteFlag, rhs.deleteFlag)
				.append(this.votePlus, rhs.votePlus)
				.append(this.createAT, rhs.createAT)
				.append(this.updateAT, rhs.updateAT)
				.isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.name) 
				.append(this.description) 
				.append(this.imgURL) 
				.append(this.songURL) 
				.append(this.singer) 
				.append(this.university) 
				.append(this.colleage) 
				.append(this.deleteFlag) 
				.append(this.votePlus) 
				.append(this.createAT) 
				.append(this.updateAT) 
				.toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("name", this.name) 
				.append("description", this.description) 
				.append("imgURL", this.imgURL) 
				.append("songURL", this.songURL) 
				.append("singer", this.singer) 
				.append("university", this.university) 
				.append("colleage", this.colleage) 
				.append("deleteFlag", this.deleteFlag) 
				.append("votePlus", this.votePlus) 
				.append("createAT", this.createAT) 
				.append("updateAT", this.updateAT) 
				.toString();
	}



}
